package mscs.client.member.logic;

import java.util.List;

import mscs.data.IFileDataStore;
import mscs.data.IMemberProxy;
import mscs.data.pojo.Member;

public class SearchMemberUtil implements ISearchMemberUtil{
	IFileDataStore fds = new IMemberProxy();

	public List accurateSearch(String attribute, String value) {
		return fds.getObjectsByAttr(attribute, value);
	}

	public List vagueSearch(String attribute, String value) {
		return fds.searchObjectsByAttr(attribute, ".*"+value+".*");
	}

}
